<template>
	<div class="tinymce">
		<editor v-model="editorData"></editor>
		<el-button type="primary" round @click="getEditor">获取文本</el-button>

		<h1 v-if="load">loading...</h1>
	</div>
</template>

<script>
import editor from '@/components/editor.vue';

export default {
	name: 'tinymce',
	components: {
		editor,
	},
	data: () => ({
		editorData: '这是一行文本',
		load: true,
	}),
	computed: {},
	mounted() {
		this.load = false;
	},
	methods: {
		getEditor() {
			console.log(this.editorData);
		},
	},
};
</script>

<style scoped lang="scss"></style>
